
<div class="ibox">
        <div class="ibox-title">
        <h5>应用管理</h5>
        
<div class="nowrap pull-right" style="margin-top:10px">
    <button data-modal='app/add' data-title="新建应用" class='layui-btn layui-btn-small'><i class='fa fa-plus'></i> 新建应用</button>
</div>

    </div>
        <div class="ibox-content fadeInUp animated">
                



    <input type="hidden" value="resort" name="action"/>
    <table class="table table-hover">
        <thead>
            <tr>
               
                 <th class='text-center'>ID</th>
                <th class='text-center'>应用名称</th>
                <th class='text-center'>AppKey</th>
                <th class='text-center'>AppSecret</th>
                <th class='text-center'>到期时间</th>
                <th class='text-center'>状态</th>
                <th class='text-center'>操作</th>
            </tr>
        </thead>
        <tbody>
        <#list page.data as obj>
               <tr>
                <td class='text-center'>${obj.id?c}</td>
                <td class='text-center'>${obj.name!""}</td>
                <td class='text-center'>${obj.appKey!""}</td>
                <td class='text-center'>${obj.appSecret!""}</td>
                <td class='text-center'>${obj.expiredTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td class='text-center'>
                                        <span <#if obj.status > style="color:#090" </#if> >${obj.status?string("上线","下线")}</span>
                                    </td>
                <td class='text-center nowrap'>
                    <span class="text-explode">|</span>
                    <a data-modal='app/edit?id=${obj.id?c}' href="javascript:void(0)">编辑</a>
                    <span class="text-explode">|</span>
                    <a data-open='app/version/index?app_id=${obj.id?c}' href="javascript:void(0)">版本管理</a>
                    <span class="text-explode">|</span>
                    <#if obj.status>
                                        <a data-load='app/forbid?id=${obj.id?c}' data-confirm="确定要下线吗？"  href="javascript:void(0)">下线</a>
                    <#else>
                    <a data-load='app/resume?id=${obj.id?c}' data-confirm="确定要上线吗？"  href="javascript:void(0)">上线</a>
                    </#if>
                                        <span class="text-explode">|</span>
                    <a data-open='app/log/index?app_id=${obj.id?c}'  href="javascript:void(0)">操作记录</a>
                </td>
                
                
            </tr>
            </#list>
                    </tbody>
    </table>
 <p>
 
 <ul class="pagination pull-right"> 
 <#import "/common/page.html" as p> 
  <@p.page data=page url="app/index" search_param=search_param />
 </ul>
 
 </p>
 


    </div>  
</div>
